package edu.elon.cs.mobile.ukulele;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.HorizontalScrollView;
import android.widget.LinearLayout;
import android.widget.ToggleButton;

public class UkuleleActivity extends Activity {
	
	private SurfaceViewer sv;
	private ToggleButton tb;
	private Button button;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        sv = (SurfaceViewer) findViewById(R.id.surfaceviewer);
        tb = (ToggleButton) findViewById(R.id.toggle);
        button = (Button) findViewById(R.id.button1);
        LinearLayout ll = (LinearLayout) findViewById(R.id.progression);
        HorizontalScrollView hsv = (HorizontalScrollView) findViewById(R.id.scrollview);
        sv.setToggleButton(tb);
        sv.setbutton(button);
        sv.setProgressionArea(hsv, ll);
    }
}